package four;

public class 四一类 {
    String brand;
}
class SxtStu {
    // field
    int id;
    String sname;
    int age;
    四一类 comp;
    void study() {
        System.out.println("我正在学习！使用我们的电脑，"+comp.brand);
    }
    SxtStu() {
    }
    public static void main(String[] args) {
        SxtStu stu1 = new SxtStu();
        stu1.sname = "张三";
        四一类 comp1 = new 四一类();
        comp1.brand = "联想";
        stu1.comp = comp1;
        stu1.study();
    }
}
